import React, { Component } from 'react';
// import ApproveProcess from 'uap/common/components/ApproveProcess'

class ApproveProcessSSC extends Component {
    constructor() {
        super();
        this.state={
            // 交易类型编码
            billtype: '',
            // 单据ID
            billid: '',
            showApproveProcess: false
        }
    }

    /**
     * 设置交易类型，单据类型
     * @param {*} param0 
     */
    setParam({billtype, billid}){
        return;
        this.setState({billtype, billid});
    }

    /**
     * 显示流程组件
     * @param {*} billtype 
     * @param {*} billid 
     */
    show(billtype, billid){
        return;
        if(billtype && billid){
            this.setState({
                billtype,
                billid,
                showApproveProcess: true
            });
        }else{
            this.setState({showApproveProcess: true});
        }
    }
    /**
     * 隐藏流程组件
     * @param {*} billtype 
     * @param {*} billid 
     */
    hide(){
        return;
        this.setState({showApproveProcess: false});
    }

    /**
     * 刷新流程组件
     */
    refresh(){
        return;
        if (!this.state.showApproveProcess) return
        this.setState({showApproveProcess: false}, () => {
            setTimeout(() => {
                this.setState({showApproveProcess: true});
            })
        })
    }

    render() {
        return (
            null
            // <div>
            //     {
            //         this.state.showApproveProcess && this.state.billtype && this.state.billid && 
            //         <ApproveProcess billtype={this.state.billtype} billid={this.state.billid}/>
            //     }
            // </div>
        )
    }
}
export default ApproveProcessSSC
